package com.jiumozhi.spring.annotation;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.support.AbstractXmlApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.web.context.support.XmlWebApplicationContext;

@ComponentScan(basePackages = "com.jiumozhi.spring.annotation.bean")
public class XMLContextTest
{


	public static void main(String[] args) {

		AbstractXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath:spring.xml");

//		User user = context.getBean(User.class);
//		System.out.println("==========="+user);
//
//		BdTest test = context.getBean(BdTest.class);
//		System.out.println("==========="+test.getUrl());

	}

}
